package com.bite.messageQueue.common;

import com.bite.messageQueue.mqServer.core.BasicProperties;

import java.io.Serializable;

public class SubScribeReturns extends BasicReturns implements Serializable {
    private String consumerTag;
    private BasicProperties basicProperties;
    private byte[] body;

    public SubScribeReturns() {
    }

    public SubScribeReturns(String sonsumerTag, BasicProperties basicProperties, byte[] body) {
        this.consumerTag = sonsumerTag;
        this.basicProperties = basicProperties;
        this.body = body;
    }

    /**
     * 获取
     * @return consumerTag
     */
    public String getConsumerTag() {
        return consumerTag;
    }

    /**
     * 设置
     * @param consumerTag
     */
    public void setConsumerTag(String consumerTag) {
        this.consumerTag = consumerTag;
    }

    /**
     * 获取
     * @return basicProperties
     */
    public BasicProperties getBasicProperties() {
        return basicProperties;
    }

    /**
     * 设置
     * @param basicProperties
     */
    public void setBasicProperties(BasicProperties basicProperties) {
        this.basicProperties = basicProperties;
    }

    /**
     * 获取
     * @return body
     */
    public byte[] getBody() {
        return body;
    }

    /**
     * 设置
     * @param body
     */
    public void setBody(byte[] body) {
        this.body = body;
    }

    public String toString() {
        return "SubScribeReturns{consumerTag = " + consumerTag + ", basicProperties = " + basicProperties + ", body = " + body + "}";
    }
}
